package com.dragon.blog.feign.controller;

import com.dragon.blog.feign.service.FeignService;
import com.dragon.blog.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @INFO:
 * @AUTHOR NAIZUI
 * @CLASSNAME LogFeignController.java
 * @CREATETIME 2021-09-28 12:48
 */
@RestController
@RequestMapping("feign/log")
@Component
public class LogFeignController {

    @Autowired
    private FeignService feignService;

    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params) {
//        R list = feignService.list(params);

        return feignService.list(params);
    }
}
